﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Net;
using System.Diagnostics;


namespace UILibrary
{
    public partial class LicenseExpired : Form
    {
        public LicenseExpired()
        {
            InitializeComponent();
        }

        private void btnClose_Click(object sender, EventArgs e)
        {
            this.Close(); 
        }

        private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            try
            {
                Process.Start(Properties.Resources.AppFeedbackURL);
            }
            catch (Win32Exception ex)
            {
                Utilities.TraceWrapper.LogException("linkLabel1_LinkClicked error: " + ex.Message, ex);

                //nothing is registered to handle URLs, so let's use IE!
                Process.Start("IExplore.exe", Properties.Resources.AppFeedbackURL);
            }
        }
    }
}
